<template>
	<view class="khpj">
		<view class="block-title">客户评价</view>
		
		<view class="flex-row justify-between align-center">
			<view class="left">
				<view class="flex-row">
					<view class="text">服务态度</view>
					<my-star :score="score1"></my-star>
				</view>
				<view class="flex-row">
					<view class="text">预期效果</view>
					<my-star :score="score2"></my-star>
				</view>
				<view class="flex-row">
					<view class="text">满意程度</view>
					<my-star :score="score3"></my-star>
				</view>
			</view>
			
			<view class="line"></view>

			<view class="right flex-col justify-center align-center">
				<view class="flex-row align-end">
					<view class="md" v-if="score=='0.00'">暂无评分</view>
					<view class="lg" v-else>{{score}}</view>
				</view>
				<my-star :score="score"></my-star>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			score: {
				type: String,
				default: '',
			},
			score1: {
				type: String,
				default: '',
			},
			score2: {
				type: String,
				default: '',
			},
			score3: {
				type: String,
				default: '',
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">
	.khpj {
		width: 750rpx;
		padding: 24rpx 40rpx;
		background: rgba(255, 255, 255, 1);

		.left {
			width: 49%;
			
			.flex-row {
				height: 50rpx;
				align-items: center;
			}

			.text {
				font-size: 24rpx;
				margin-right: 16rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: rgba(153, 153, 153, 1);
				letter-spacing: 1px;
			}
		}
		
		.line {
			width: 4rpx;
			height: 120rpx;
			background: #BFBFBF;
		}
		
		.right {
			width: 49%;
			color: #EEBC80;
			.md {
				font-size: 40rpx;
				margin-bottom: 24rpx;
			}
			.lg {
				font-size: 60rpx;
				&::after {
					content: '分';
					font-size: 24rpx;
					margin-left: 8rpx;
				}
			}
		}
	}
</style>
